const mongoose = require('mongoose');

mongoose.connect('mongodb://localhost/demo', {
    useNewUrlParser: true
});

async function toRun() {
    await mongoose.connect()
    const Kitty = mongoose.model('Kitty', kittySchema, 'Kitties')
    const kit1 = await new Kitty({
        name: 'tam'
    })

}